#ifndef INPUTBOX_H
#define INPUTBOX_H

#include <QtGui>

class InputBox : public QGraphicsTextItem
{
    Q_OBJECT
public:
    explicit InputBox(const QString & text,
                      const QPointF & pos,
                      QGraphicsItem * parent = 0,
                      QGraphicsScene * scene = 0,
                      const QFont & font = QFont(),
                      const qreal textWidth = 200);

    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);

signals:

public slots:

private:
    void deleteALetter();
    void appendChar(int c);
};

#endif // INPUTBOX_H
